package com.wxzz.elearing.comment.api.admin;


import com.alibaba.fastjson.JSONObject;
import com.wxzz.elearing.comment.dto.StudyQuestionsAnswersDto;
import com.wxzz.elearing.comment.entity.StudyQuestionsAnswersList;
import com.wxzz.elearing.comment.service.IStudyQuestionsAnswersListService;
import com.wxzz.elearing.comment.vo.StudyQuestionsAnswersListVo;
import com.wxzz.elearning.common.vo.JgPageVo;
import com.wxzz.elearning.common.vo.ReturnVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author
 * @since 2021-05-14
 */
@RestController
@RequestMapping("/admin-study-list")
@Api(tags = "企业学以致用文章类接口(企业)")
public class AdminStudyController {


    @Autowired
    private RedisTemplate<String, String> redisTemplate;

    @Resource
    private IStudyQuestionsAnswersListService iStudyQuestionsAnswersListService;

    @ApiOperation(value = "企业学以致用文章列表(企业)", notes = "企业学以致用文章列表(企业)", httpMethod = "POST", tags = "企业")
    @RequestMapping(value = "queryQuestionsAnswersList", method = RequestMethod.POST)
    public ReturnVO<JgPageVo<List<StudyQuestionsAnswersListVo>>> queryQuestionsAnswersList(@RequestBody StudyQuestionsAnswersDto questionsAnswersDto) {
        return iStudyQuestionsAnswersListService.adminStudyList(questionsAnswersDto);
    }


}
